package com.bihu.bihudemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * (Comment)表实体类
 *
 * @author makejava
 * @since 2020-07-15 17:10:17
 */
@SuppressWarnings("serial")
public class Comment extends Model<Comment> {
    //评论ID
    @TableId(type = IdType.AUTO)
    private Integer id;
    //评论用户
    private Integer uid;
    //点赞数
    private Integer likenum;
    //评论内容
    private Object content;
    //被评论的文章
    private Integer aid;
    //评论转为HTML
    private Object commentFomat;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getLikenum() {
        return likenum;
    }

    public void setLikenum(Integer likenum) {
        this.likenum = likenum;
    }

    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public Object getCommentFomat() {
        return commentFomat;
    }

    public void setCommentFomat(Object commentFomat) {
        this.commentFomat = commentFomat;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}